
<div class="holder">
	<div class="box">
		<div class="title"> 
			<h2>添加章节</h2> 
			<img class="toggle" src="<?php echo $Theme_Root?>/images/title-hide.gif"> 
		</div>
		<div class="content forms">
			<form action="" method="post">
				<div class="row"> 
					<label>所属图书:《<?php echo $book_info['book_name'];?>》</label>
					<?php
					if(isset($chapter_info)){
					?>
					<label>所属章节:《<?php echo $chapter_info['chapter_title'];?>》</label>
					<input name="chapter_id" type="hidden" value="<?php echo $chapter_info['chapter_id'];?>" />
					<?php 
					}
					?>
				</div>
				
				<div class="row"> 
					<label>内容标题:</label>
					<input type="text" value="<?php echo $article_info['article_title'];?>" class="medium" name="article_title" />
				</div>
				
				<div class="row_ckeditor"> 
					<label>内容:</label>
					<?php 
					//<textarea name="content"></textarea>
					import_lib('ckeditor.ckeditor');
					$ckeditor = new CKEditor();
					$ckeditor->basePath = $Site_Url.'/libraries/ckeditor/';
					$config = array(
							'height' => '400'
							);
					$ckeditor->editor('content',$article_info['content'],$config);
					?>
				</div>

				<div class="row">
					<input name="article_id" type="hidden" value="<?php echo $article_info['article_id'];?>" />
					<input name="book_id" type="hidden" value="<?php echo $book_info['book_id'];?>" />
					<input type="hidden" name="dosubmit" value="yes" />
					<button type="submit" class="button-normal"><span>保存</span></button>
				</div>
			</form>
		</div>
	</div>
</div>